package com.material.vtool.entity.respEntity;

/**
 * 接口响应类
 */
public class RespData {

    private RespHead head;

    private Object data;

    public RespHead getHead() {
        if (head == null) {
            head = new RespHead();
        }
        return head;
    }

    public void setHead(RespHead head) {
        this.head = head;
    }

    public Object getData() {
        if (data == null) {
            data = new Object();
        }
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setMsg(String msg) {
        this.getHead().setMsg(msg);
    }

    public void setCode(int code) {
        this.getHead().setCode(code);
    }

}
